import server from "@/utils/request";

// 局校通知相关接口
// 分页获取局校通知
export function getAllInformByPage(playold = {}) {
    return server.get('/school/AllAllInform/getAllInformByPage', { params: playold })
}
// 根据id获取局校通知
export function getAllInformById(id: any) {
    return server.get('/school/AllAllInform/getAllInformById/' + id)
}
// 删除局校通知
export function deleteAllInform(id: any) {
    return server.delete('/school/AllAllInform/deleteAllInform/' + id)
}
// 创建局校通知接口
export function saveAllInform(playold: any = {}) {
    return server.post(`/school/AllAllInform/saveAllInform?title=${playold.title}&typeId=${playold.typeId}&detail=${playold.detail}&priority=${playold.priority}`)
}